<template>
   <div id="app">
       父组件---{{counterStore.counter}}---{{counterStore.msg}}<br />
       <Son1></Son1>
       <Son2></Son2>
   </div>
</template>
<script setup>
import {ref} from 'vue'
import Son1 from './components/Son1.vue'
import Son2 from './components/Son2.vue'
import {useCounterStore} from "@/store/counter"
const counterStore = useCounterStore()
console.log(1,counterStore)
</script>
<style>
</style>


 
 
